AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')

function ENT:Initialize()
	self.Entity:SetModel( "models/military2/bomb/bomb_cbu.mdl" )
	self.Entity.IsSubmunition = true
	self.BaseClass.Initialize(self)
	
	self.Entity.speed = 3600
	self.Entity.minspeed = 3600
	self.Entity.maxspeed = 3600
	self.Entity.acceltime = 1.5
	
	util.SpriteTrail(self.Entity, 0, self.Entity.Color, false, 10, 0, 3.2, 0.25, "trails/smoke.vmt")
end

function ENT:DrawImpact()
	CDEffect_explosion_primitive(self.Entity:GetPos()) 
	self.Entity:EmitSound(Sound("ambient/explosions/explode_4.wav"),90,math.random(90,110));
end

